package com.ruoyi.project.filemgr.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 分享管理对象 sharemgr
 * 
 * @author filemgr
 * @date 2024-02-02
 */
public class Sharemgr extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 文件ID */
    @Excel(name = "文件ID")
    private Long fileId;

    /** 实现 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实现", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deadline;

    /** 分享类型 */
    @Excel(name = "分享类型")
    private String type;

    /** 分享给谁 */
    @Excel(name = "分享给谁")
    private Long userId;

    /** 谁分享的 */
    @Excel(name = "谁分享的")
    private Long shareUserId;

    /** 分享给谁名字 */
    @Excel(name = "分享给谁名字")
    private String userName;

    /** 谁分享的名字 */
    @Excel(name = "谁分享的名字")
    private String shareUserName;

    /** 时长类型 */
    @Excel(name = "时长类型")
    private String timeType;

    /** 审批状态 */
    @Excel(name = "审批状态")
    private String status;

    /** 审批人 */
    @Excel(name = "审批人")
    private Long applyUserId;

    /** 审批名称 */
    @Excel(name = "审批名称")
    private String applyUserName;

    public Filemgr getFilemgr() {
        return filemgr;
    }

    public void setFilemgr(Filemgr filemgr) {
        this.filemgr = filemgr;
    }

    /** 用户名称 */
    private Filemgr filemgr;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setFileId(Long fileId) {
        this.fileId = fileId;
    }

    public Long getFileId() {
        return fileId;
    }

    public void setDeadline(Date deadline) {
        this.deadline = deadline;
    }

    public Date getDeadline() {
        return deadline;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setShareUserId(Long shareUserId) {
        this.shareUserId = shareUserId;
    }

    public Long getShareUserId() {
        return shareUserId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setShareUserName(String shareUserName) {
        this.shareUserName = shareUserName;
    }

    public String getShareUserName() {
        return shareUserName;
    }

    public void setTimeType(String timeType) {
        this.timeType = timeType;
    }

    public String getTimeType() {
        return timeType;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setApplyUserId(Long applyUserId) {
        this.applyUserId = applyUserId;
    }

    public Long getApplyUserId() {
        return applyUserId;
    }

    public void setApplyUserName(String applyUserName) {
        this.applyUserName = applyUserName;
    }

    public String getApplyUserName() {
        return applyUserName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("fileId", getFileId())
                .append("deadline", getDeadline())
                .append("type", getType())
                .append("userId", getUserId())
                .append("shareUserId", getShareUserId())
                .append("userName", getUserName())
                .append("shareUserName", getShareUserName())
                .append("timeType", getTimeType())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("status", getStatus())
                .append("applyUserId", getApplyUserId())
                .append("applyUserName", getApplyUserName())
                .toString();
    }
}
